<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>拜访新增</title>
</head>

<body>
<div class="margin clearfix">
 <div class="search_style">
<br/><br/><br/>
 <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">选择客户： </label>
          <div class="col-sm-9"><span class="formControls col-4" style=" width:400px">
		  <select style=" width:300px" class="form-control" id="form-field-select-1" >
          <option value="">--选择客户--</option>
          <option value="1">潮汕公司</option>
          <option value="2">花海国企</option>
          <option value="3">飞翔有限公司</option>
		   <option value="4">黄石企业</option>
          </select>
		  </span></div>
          </div>
   <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">申请人： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  style=" width:300px" class="col-xs-10 "></div>
          </div>
		  
		  <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">拜访人员： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  style=" width:300px" class="col-xs-10"></div>
          </div>
		  
	      <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">联系电话： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  style=" width:300px" class="col-xs-10">&nbsp;&nbsp;
		  </div>
          </div>
		   <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">拜访乘坐： </label>
          <div class="col-sm-9"><span class="formControls col-4"><select style=" width:300px" class="form-control" id="form-field-select-1">
          <option value="">--选择乘坐交通工具--</option>
          <option value="1">火车</option>
          <option value="2">飞机</option>
          <option value="3">轮船</option>
          </select>
          </span></div>
          </div>
		  <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">预计时间： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  style=" width:300px" class="col-xs-10">&nbsp;&nbsp;天</div>
          </div>
       
          <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">出发时间： </label>
          <div class="col-sm-9"><input class="inline laydate-icon" id="start1"   style=" margin-left:10px;width:300px"></div>
          </div>
          <div class="form-group" style="margin-left:300px"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">拜访内容： </label>
          <div class="col-sm-9"><textarea class="textarea" style="width:500px" ></textarea></div>
          </div>

     <div class="At_button">
	            <button onclick="through_save();" class="btn btn-primary radius" type="submit">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
				<button onclick="go()" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
     </div>
 </div>
</body>
</html>
<script>
	  function go(){location.href="visit_list.html";}
jQuery(function($) {
				var oTable1 = $('#sample-table').dataTable( {
				"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,1,2,3,4,5,6,7]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			});
			

function member_del(obj,id){
	layer.confirm('确认忽略，这条信息将不再显示',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}

function integration_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#integration_history'),
	})	
		$('#integration_history_list').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	 }]
});
	
	};

function Browse_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#Browse_history'),
	})	
$('#Browse_history_list').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	}]
});	
}


function Order_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#Order_history'),
	});	
		$('#Order_history_list').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	 }]
});		
}


</script>
<script type="text/javascript">
 function through_save(){
	 layer.confirm('确认保存吗？',function(index){
		layer.msg('已保存!',{icon:1,time:1000});
		location.href="visit_list.html";
		parent.$('#parentIframe').css("display","none");
		parent.$('.Current_page').css({"color":"#333333"});
	});
 }
 laydate({
    elem: '#start1',
    event: 'focus' 
});
 laydate({
	elem: '#start2',
    event: 'focus' 
});
</script>